using System;
using System.Collections.Generic;
namespace DalatCooking.Core
{
    public abstract class IContactRepository
    {
        public abstract bool Insert(Contact entity);
        public abstract bool Update(Contact entity);
        public abstract bool Delete(Contact entity);
        public abstract bool Delete(int id);
        public abstract List<Contact> FindAll();
        public abstract Contact FindById(int id);
        public abstract Contact Single(int id);
        public abstract Contact FindByName(string name);
        public abstract List<Contact> PagingSql(int pageSize, int pageNum, out int totalRowCount);
        public abstract List<Contact> PagingLinq(int pageSize, int pageNum, out int totalRowCount);
        public abstract bool SetIsRead(int id);
      
        public abstract bool SetActive(int id);
        public abstract bool SetSortIndex(int id, int isup);
        public abstract bool RemoveSelectedItem(int id);
        public abstract bool RemoveAll();
        public abstract bool RestoreSelectedItem(int id);
        public abstract bool RestoreAll();
    }
}